home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1122 / 1122.xpi / chrome / tabmixplus.jar / content / tabmixplus / tabmix.xul < prev   
Extensible Markup Language  |  2009-10-01  |  34KB  |  461 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://tabmixplus/skin/tab.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://tabmixplus/skin/classic.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://tabmixplus/skin/text_link.css" type="text/css"?>
  7.  
  8. <!DOCTYPE overlay [
  9. <!ENTITY % tabmixDTD SYSTEM "chrome://tabmixplus/locale/tabmix.dtd" >
  10. %tabmixDTD;
  11. <!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd" >
  12. %tabBrowserDTD;
  13. ]>
  14.  
  15. <!-- original code from TBP Lite //-->
  16.  
  17. <overlay id="tabmix-overlay"
  18.    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  19.  
  20.    <script type="application/x-javascript" src="chrome://tabmixplus/content/tabmix.js"/>
  21.    <script type="application/x-javascript" src="chrome://tabmixplus/content/minit/tablib.js"/>
  22.    <script type="application/x-javascript" src="chrome://tabmixplus/content/minit/minit.js"/>
  23.    <script type="application/x-javascript" src="chrome://tabmixplus/content/links/contentLinks.js"/>
  24.    <script type="application/x-javascript" src="chrome://tabmixplus/content/links/userInterface.js"/>
  25.    <script type="application/x-javascript" src="chrome://tabmixplus/content/links/setup.js"/>
  26.    <script type="application/x-javascript" src="chrome://tabmixplus/content/tab/tab.js"/>
  27.    <script type="application/x-javascript" src="chrome://tabmixplus/content/flst/flst.js"/>
  28.    <script type="application/x-javascript" src="chrome://tabmixplus/content/flst/lasttab.js"/>
  29.    <script type="application/x-javascript" src="chrome://tabmixplus/content/click/click.js"/>
  30.    <script type="application/x-javascript" src="chrome://tabmixplus/content/places/places.js"/>
  31.    <script type="application/x-javascript" src="chrome://tabmixplus/content/session/session.js"/>
  32.    <script type="application/x-javascript" src="chrome://tabmixplus/content/session/sessionStore.js"/>
  33.    <script type="application/x-javascript" src="chrome://tabmixplus/content/session/promptservice.js"/>
  34.    <script type="application/x-javascript" src="chrome://tabmixplus/content/extensions/wizzrss.js"/>
  35.  
  36.   <window id="main-window"
  37.     onload="TMP_TBP_Startup();" />
  38.  
  39.     <!-- vide-bar is for push the bottom tabbar up to right position when using multibar
  40.          XXX I don't know if we need this ??? !!!
  41.     -->
  42.     <vbox id="appcontent">
  43.       <hbox id="vide-bar" insertbefore="content" />
  44.     </vbox>
  45.  
  46.    <menupopup id="menu_ToolsPopup">
  47.       <menuitem id="tabmix-menu" label="&page.header.title;ΓǪ" insertbefore="prefSep" tmp_iconic="menuitem-iconic"
  48.          oncommand="TMP_openDialog(-1);"/>
  49.       <menu id="tm-sessionmanager" label="&session.Tools;" insertbefore="prefSep" tmp_iconic="menu-iconic">
  50.          <menupopup id="tm-sessionmanager_menu"
  51.                   contextmenu="tm_sessionmanagerContextMenu"
  52.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows');"
  53.                   oncommand="SessionManager.restoreSession(event.originalTarget);"
  54.                   onclick="SessionManager.removeFromMenu(event, this, gRDFRoot+'/windows');">
  55.             <menuitem id="tm-sm-settings" label="&settings.label;ΓǪ" tmp_iconic="menuitem-iconic"
  56.                   oncommand="TMP_openDialog(5); event.stopPropagation();"/>
  57.             <menuseparator/>
  58.             <menu id="tm-sm-closedwindows2" label="&closedWin.label;" observes="tmp_closedwindows" tmp_iconic="menu-iconic closedwindows-icon tmp-icon">
  59.                <menupopup id="tm-sm-closedwindows_menu2"
  60.                   contextmenu="tm_sessionmanagerContextMenu"
  61.                   onpopupshowing="SessionManager.createMenu(this, gSessionPath[0]);"
  62.                   oncommand="SessionManager.restoreSession(event.originalTarget);event.stopPropagation();"
  63.                   onclick="SessionManager.removeFromMenu(event, this, gSessionPath[0]);event.stopPropagation();">
  64.                   <menuseparator id="tm-sm-closedwindows2-startSeparator" hidden="true"/>
  65.                   <menuseparator id="tm-sm-closedwindows2-endSeparator" hidden="true"/>
  66.                </menupopup>
  67.             </menu>
  68.             <menuitem id="tm-sm-saveone" label="&saveWindow.label;ΓǪ" key="key_tm-sm-saveone"
  69.                   oncommand="SessionManager.sessionUtil('save', 'thiswindow');event.stopPropagation();"/>
  70.             <menuitem id="tm-sm-saveall" label="&saveAllWindows.label;ΓǪ" key="key_tm-sm-saveall" observes="tmp_menu_AllWindows"
  71.                   oncommand="SessionManager.sessionUtil('save', 'allwindows');event.stopPropagation();"/>
  72.             <menuseparator/>
  73.             <menu anonid="rename" label="&sm.context.rename;" accesskey="&sm.context.rename.key;">
  74.                <menupopup
  75.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows', 0, true);"
  76.                   oncommand="SessionManager.renameSession(event.originalTarget.session);event.stopPropagation();">
  77.                </menupopup>
  78.             </menu>
  79.             <menu anonid="delete" label="&sm.context.delete;" accesskey="&sm.context.delete.key;">
  80.                <menupopup
  81.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows');"
  82.                   oncommand="SessionManager.removeSavedSession(event.originalTarget, true);event.stopPropagation();">
  83.                   <menuseparator id="tm-sm-delete-startSeparator" hidden="true"/>
  84.                   <menuseparator id="tm-sm-delete-endSeparator" hidden="true"/>
  85.                </menupopup>
  86.             </menu>
  87.             <menuseparator id="tm-sessionmanager-startSeparator"/>
  88.             <menuseparator id="tm-sessionmanager-endSeparator"/>
  89.          </menupopup>
  90.       </menu>
  91.       <menu id="tm-sm-closedwindows" label="&closedWin.label;" insertbefore="prefSep" observes="tmp_closedwindows" tmp_iconic="menu-iconic closedwindows-icon tmp-icon">
  92.          <menupopup id="tm-sm-closedwindows_menu"
  93.             contextmenu="tm_sessionmanagerContextMenu"
  94.             onpopupshowing="SessionManager.createMenu(this, gSessionPath[0]);"
  95.             oncommand="SessionManager.restoreSession(event.originalTarget);"
  96.             onclick="SessionManager.removeFromMenu(event, this, gSessionPath[0]);">
  97.             <menuseparator id="tm-sm-closedwindows-startSeparator" hidden="true"/>
  98.             <menuseparator id="tm-sm-closedwindows-endSeparator" hidden="true"/>
  99.          </menupopup>
  100.       </menu>
  101.    </menupopup>
  102.  
  103.    <popupset id="mainPopupSet">
  104.       <popup id="extTabMixPopup">
  105.        <menuseparator id="tm-separator" _afterthis="(&afterthis.label;)"/>
  106.        <menuseparator id="tm-separator-2"/>
  107.        <menu id="tm-undoCloseList" label="&undoCloseListMenu.label;" accesskey="&undoCloseListMenu.accesskey;" tmp_iconic="menu-iconic closedtabs-icon tmp-icon">
  108.          <menupopup id="tm-undoCloseList-menu" class="fix-bookmark-item"
  109.           onpopupshowing="TMP_ClosedTabs.populateUndoSubmenu(this); event.stopPropagation();"
  110.           onpopupshown="event.stopPropagation();"
  111.           onpopuphidden="hideCommonList(this);"
  112.           oncommand="TMP_ClosedTabs.restoreTab('original', event.originalTarget.value); event.stopPropagation();"
  113.           onclick="TMP_ClosedTabs.checkForMiddleClick(event);"/>
  114.        </menu>
  115.        <menuitem id="tm-duplicateTab" key="key_tm_dupTab" label="&duplicateTabMenu.label;" accesskey="&duplicateTabMenu.accesskey;"
  116.                  oncommand="gBrowser.duplicateTab(gBrowser.mContextTab);"/>
  117.        <menuitem id="tm-duplicateinWin" key="key_tm_dupWin" label="&duplicateinWin.label;" accesskey="&duplicateinWin.accesskey;"
  118.                  oncommand="gBrowser.duplicateInWindow(gBrowser.mContextTab, false);"/>
  119.        <menuitem id="tm-detachTab" key="key_tm_detachTab" label="&detachTab.label;" accesskey="&detachTab.accesskey;"
  120.                  oncommand="gBrowser.duplicateInWindow(gBrowser.mContextTab, true);"/>
  121.        <menuitem id="tm-mergeWindowsTab" key="key_tm_mergeWin" label="&mergeContext.label;" accesskey="&mergeContext.accesskey;"
  122.                  oncommand="dtMergeWindows.mergeWindows();"/>
  123.        <menuitem id="tm-renameTab" label="&renametab.label;" accesskey="&renametab.accesskey;"
  124.                  oncommand="gBrowser.renameTab(gBrowser.mContextTab);"/>
  125.        <menuitem id="tm-copyTabUrl" label="©taburl.label;" accesskey="©taburl.accesskey;"
  126.                  oncommand="gBrowser.copyTabUrl(gBrowser.mContextTab);"/>
  127.        <menuitem id="tm-closeAllTabs" label="&closeAllTabsMenu.label;" accesskey="&closeall.accesskey;"
  128.                  oncommand="gBrowser.closeAllTabs();"/>
  129.        <menuitem id="tm-closeSimilar" label="&closeSimilarTab.label;" accesskey="&closeSimilarTab.accesskey;"
  130.                  oncommand="gBrowser.closeGroupTabs(gBrowser.mContextTab);"/>
  131.        <menuitem id="tm-closeRightTabs" label="&closeRightTabsMenu.label;" accesskey="&closeright.accesskey;"
  132.                  oncommand="gBrowser.closeRightTabs(gBrowser.mContextTab);"/>
  133.        <menuitem id="tm-closeLeftTabs" label="&closeLeftTabsMenu.label;" accesskey="&closeleft.accesskey;"
  134.                  oncommand="gBrowser.closeLeftTabs(gBrowser.mContextTab);"/>
  135.        <menu id="tm-docShell" label="&docShellMenu.label;" accesskey="&docShellMenu.accesskey;">
  136.          <menupopup
  137.                  onpopupshowing='for(var i = 0; i != childNodes.length; i++) {childNodes[i].setAttribute("checked",gBrowser.getBrowserForTab(gBrowser.mContextTab).docShell[childNodes[i].value]);}
  138.                                  event.stopPropagation();'
  139.                  onpopupshown="event.stopPropagation();"
  140.                  oncommand="var currentDocShell = gBrowser.getBrowserForTab(gBrowser.mContextTab).docShell; currentDocShell[event.originalTarget.value] = !currentDocShell[event.originalTarget.value];
  141.                             gBrowser.reloadTab(gBrowser.mContextTab);">
  142.           <menuitem label="&allowImage.label;" value="allowImages" class="menuitem-iconic" type="checkbox" checked="true" />
  143.           <menuitem label="&allowFrame.label;" value="allowSubframes" class="menuitem-iconic" type="checkbox" checked="true" />
  144.           <menuitem label="&allowRedirect.label;" value="allowMetaRedirects" class="menuitem-iconic" type="checkbox" checked="true" />
  145.           <menuitem label="&allowPlugin.label;" value="allowPlugins" class="menuitem-iconic" type="checkbox" checked="true" />
  146.           <menuitem label="&allowJavascript.label;" value="allowJavascript" class="menuitem-iconic" type="checkbox" checked="true" />
  147.          </menupopup>
  148.        </menu>
  149.        <menuitem id="tm-lockTab" label="&lockTabMenu.label;" accesskey="&lockTabMenu.accesskey;" type="checkbox"
  150.                  oncommand="gBrowser.lockTab(gBrowser.mContextTab);"/>
  151.        <menuitem id="tm-protectTab" label="&protectTabMenu.label;" accesskey="&protectTabMenu.accesskey;" type="checkbox"
  152.                  oncommand="gBrowser.protectTab(gBrowser.mContextTab);"/>
  153.        <menuitem id="tm-freezeTab" label="&freezeTabMenu.label;" accesskey="&freezeTabMenu.accesskey;" type="checkbox"
  154.                  oncommand="gBrowser.freezeTab(gBrowser.mContextTab);" />
  155.        <menuitem id="tm-reloadLeft" label="&reloadleft.label;" accesskey="&reloadleft.accesskey;"
  156.                  oncommand="gBrowser.reloadLeftTabs(gBrowser.mContextTab);"/>
  157.        <menuitem id="tm-reloadRight" label="&reloadright.label;" accesskey="&reloadright.accesskey;"
  158.                  oncommand="gBrowser.reloadRightTabs(gBrowser.mContextTab);" />
  159.        <menuitem id="tm-reloadOther" label="&reloadother.label;" accesskey="&reloadother.accesskey;"
  160.                  oncommand="gBrowser.reloadAllTabsBut(gBrowser.mContextTab);" />
  161.        <menu id="tm-autoreloadTab_menu" label="&autoReloadTab.label;" accesskey="&autoReloadTab.accesskey;"/>
  162.       </popup>
  163.     </popupset>
  164.  
  165.     <popup id="contentAreaContextMenu">
  166.       <menuitem id="tm-openlinkhere" label="&linkhere.label;" accesskey="&linkhere.accesskey;"
  167.          insertbefore="context-openlinkintab"
  168.          oncommand="gBrowser.openHereWith();"/>
  169.       <menuitem id="tm-openinverselink" label="" fglabel="&linkForegroundTab.label;" bglabel="&linkBackgroundTab.label;"
  170.          fgaccesskey="&linkForegroundTab.accesskey;" bgaccesskey="&linkBackgroundTab.accesskey;"
  171.          insertafter="context-openlinkintab"
  172.          oncommand="gBrowser.openInverseLink();"/>
  173.       <menuitem id="tm-openAllLinks" label="&openalllinks.label;" accesskey="&openalllinks.accesskey;"
  174.          insertafter="context-openlinkintab" oncommand="TMP_openMultipleLinks();"/>
  175.       <menuitem id="tm-linkWithhistory" label="&linkwithhistory.label;" accesskey="&linkwithhistory.accesskey;"
  176.          insertafter="context-openlinkintab" oncommand="gBrowser.openLinkWithHistory(gBrowser.mCurrentTab);"/>
  177.       <menuseparator id="tm-content-miscSep" insertafter="context-stop"/>
  178.       <menuitem id="tm-content-closetab" label="&closeTab.label;" oncommand="gBrowser.removeCurrentTab();" insertbefore="context-sep-stop"/>
  179.       <menuitem id="tm-duplicateTabContext" key="key_tm_dupTab" label="&duplicateTabMenu.label;" accesskey="&duplicateTabMenu.accesskey;"
  180.          oncommand="gBrowser.duplicateTab(gBrowser.mCurrentTab);" insertbefore="context-sep-stop"/>
  181.       <menuitem id="tm-duplicateinWinContext" key="key_tm_dupWin" label="&duplicateinWin.label;" accesskey="&duplicateinWin.accesskey;"
  182.          oncommand="gBrowser.duplicateInWindow(gBrowser.mCurrentTab, false);" insertbefore="context-sep-stop"/>
  183.       <menuitem id="tm-detachTabContext" key="key_tm_detachTab" label="&detachTab.label;" accesskey="&detachTab.accesskey;"
  184.          oncommand="gBrowser.duplicateInWindow(gBrowser.mCurrentTab, true);" insertbefore="context-sep-stop"/>
  185.       <menuitem id="tm-mergeWindows" key="key_tm_mergeWin" label="&mergeContext.label;" accesskey="&mergeContext.accesskey;" oncommand="dtMergeWindows.mergeWindows();" insertbefore="context-sep-stop" />
  186.       <menuitem id="tm-content-freezeTab" type="checkbox" oncommand="gBrowser.freezeTab(gBrowser.mCurrentTab);"
  187.          insertbefore="context-sep-stop" label="&freezeTabMenu.label;" accesskey="&freezeTabMenu.accesskey;"/>
  188.       <menuitem id="tm-content-protectTab" type="checkbox"
  189.          oncommand="gBrowser.protectTab(gBrowser.mCurrentTab);"
  190.          insertbefore="context-sep-stop" label="&protectTabMenu.label;" accesskey="&protectTabMenu.accesskey;"/>
  191.       <menuitem id="tm-content-lockTab" type="checkbox"
  192.          oncommand="gBrowser.lockTab(gBrowser.mCurrentTab);"
  193.          insertbefore="context-sep-stop" label="&lockTabMenu.label;" accesskey="&lockTabMenu.accesskey;"/>
  194.       <menu id="tm-tabsList" label="&tabsList.label;" accesskey="&tabsList.accesskey;" insertbefore="context-sep-stop" tmp_iconic="menu-iconic">
  195.         <menupopup id="tm-tabsList-menu" class="fix-bookmark-item"
  196.            onpopupshowing="createTabsList(this, 2);"
  197.            onpopuphidden="hideCommonList(this);"
  198.            onclick="removeTabFromList(event, this, 2);"
  199.            oncommand="gBrowser.selectedTab = gBrowser.mTabContainer.childNodes[event.originalTarget.value];"/>
  200.        </menu>
  201.       <menuseparator id="tm-content-undoCloseSep" insertbefore="context-sep-stop"/>
  202.       <menuitem id="tm-content-undoCloseTab" oncommand="TMP_ClosedTabs.undoCloseTab();" insertbefore="context-sep-stop"
  203.          key="key_undoCloseTab" label="&undoCloseTab.label;" accesskey="&undoCloseTab.accesskey;"/>
  204.       <menu id="tm-content-undoCloseList" label="&undoCloseListMenu.label;" accesskey="&undoCloseListMenu.accesskey;" tmp_iconic="menu-iconic closedtabs-icon tmp-icon"
  205.          insertbefore="context-sep-stop">
  206.         <menupopup id="tm-content-undoCloseList-menu" class="fix-bookmark-item"
  207.           onpopupshowing="TMP_ClosedTabs.populateUndoSubmenu(this);"
  208.           onpopuphidden="hideCommonList(this);"
  209.           oncommand="TMP_ClosedTabs.restoreTab('original', event.originalTarget.value); event.stopPropagation();"
  210.           onclick="TMP_ClosedTabs.checkForMiddleClick(event);"/>
  211.       </menu>
  212.       <menuseparator id="tm-content-textSep" insertbefore="context-sep-undo"/>
  213.       <menu id="tm-autoreload_menu" label="&autoReload.label;" accesskey="&autoReload.accesskey;" insertafter="context-reload"/>
  214.     </popup>
  215.  
  216.     <toolbarpalette id="BrowserToolbarPalette">
  217.       <!-- undo close tabs button -->
  218.       <toolbarbutton id="btn_undoclose" class="toolbarbutton-1 chromeclass-toolbar-additional"
  219.               observes="tmp_undocloseButton"
  220.               oncommand="if (!isAfterCtrlClick(event.target)) TMP_ClosedTabs.undoCloseTab();"
  221.               onclick="if (event.target == this && event.button == 1) TMP_ClosedTabs.restoreTab('original', -2);"
  222.               onmousedown="checkForCtrlClick(event);"
  223.               ondragover="nsDragAndDrop.dragOver(event, undocloseTabButtonObserver);"
  224.               label="&closedtabsbtn.label;"
  225.               _tooltiptext="&closedtabsbtn.tooltip;"
  226.               tooltiptext="&closedtabsbtn.tooltip;">
  227.         <menupopup id="btn_undoclose_menu"
  228.               contextmenu="tm_undocloseContextMenu"
  229.               onpopupshowing="return TMP_ClosedTabs.populateUndoSubmenu(this);"
  230.               onpopuphidden="hideCommonList(this);"
  231.               oncommand="TMP_ClosedTabs.restoreTab('original', event.originalTarget.value); event.stopPropagation();"
  232.               onclick="TMP_ClosedTabs.checkForMiddleClick(event);"/>
  233.       </toolbarbutton>
  234.       <!-- session manager button -->
  235.       <toolbarbutton id="btn_sessionmanager" type="menu" class="toolbarbutton-1 chromeclass-toolbar-additional"
  236.               observes="tmp_sessionmanagerButton"
  237.               _tooltiptext="&sessionbtn.tooltip;"
  238.               tooltiptext="&sessionbtn.tooltip;"
  239.               label="&session.Tools;" >
  240.          <menupopup id="btn_sessionmanager_menu"
  241.                   contextmenu="tm_sessionmanagerContextMenu"
  242.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows');
  243.                                   TMP_setItem('tm-sm-closedwindows1','hidden', document.getElementById('btn_closedwindows') ? true : false);"
  244.                   onpopuphidden="this.parentNode.setAttribute('tooltiptext', this.parentNode.getAttribute('_tooltiptext'));"
  245.                   oncommand="SessionManager.restoreSession(event.originalTarget);"
  246.                   onclick="SessionManager.removeFromMenu(event, this, gRDFRoot+'/windows');">
  247.             <menuitem id="btn-sm-settings" label="&settings.label;ΓǪ" tmp_iconic="menuitem-iconic"
  248.                   oncommand="TMP_openDialog(5); event.stopPropagation();"/>
  249.             <menuseparator/>
  250.             <menu id="tm-sm-closedwindows1" label="&closedWin.label;" observes="tmp_closedwindows" tmp_iconic="menu-iconic closedwindows-icon tmp-icon">
  251.                <menupopup id="tm-sm-closedwindows_menu1"
  252.                   contextmenu="tm_sessionmanagerContextMenu"
  253.                   onpopupshowing="SessionManager.createMenu(this, gSessionPath[0]);"
  254.                   onpopuphidden="event.stopPropagation();"
  255.                   oncommand="SessionManager.restoreSession(event.originalTarget);event.stopPropagation();"
  256.                   onclick="SessionManager.removeFromMenu(event, this, gSessionPath[0]);event.stopPropagation();">
  257.                   <menuseparator id="tm-sm-closedwindows1-startSeparator" hidden="true"/>
  258.                   <menuseparator id="tm-sm-closedwindows1-endSeparator" hidden="true"/>
  259.                </menupopup>
  260.             </menu>
  261.             <menuitem id="btn-sm-saveone" label="&saveWindow.label;ΓǪ" key="key_tm-sm-saveone"
  262.                   oncommand="SessionManager.sessionUtil('save', 'thiswindow');event.stopPropagation();"/>
  263.             <menuitem id="btn-sm-saveall" label="&saveAllWindows.label;ΓǪ" key="key_tm-sm-saveall"  observes="tmp_menu_AllWindows"
  264.                   oncommand="SessionManager.sessionUtil('save', 'allwindows');event.stopPropagation();"/>
  265.             <menuseparator/>
  266.             <menu anonid="rename" label="&sm.context.rename;" accesskey="&sm.context.rename.key;">
  267.                <menupopup
  268.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows', 0, true);"
  269.                   oncommand="SessionManager.renameSession(event.originalTarget.session);event.stopPropagation();">
  270.                </menupopup>
  271.             </menu>
  272.             <menu anonid="delete" label="&sm.context.delete;" accesskey="&sm.context.delete.key;">
  273.                <menupopup
  274.                   onpopupshowing="SessionManager.createMenu(this, gRDFRoot+'/windows');"
  275.                   oncommand="SessionManager.removeSavedSession(event.originalTarget, true);event.stopPropagation();">
  276.                   <menuseparator id="tm-sm-delete-startSeparator" hidden="true"/>
  277.                   <menuseparator id="tm-sm-delete-endSeparator" hidden="true"/>
  278.                </menupopup>
  279.             </menu>
  280.             <menuseparator id="btn_sessionmanager-startSeparator"/>
  281.             <menuseparator id="btn_sessionmanager-endSeparator"/>
  282.          </menupopup>
  283.       </toolbarbutton>
  284.       <!-- Tool Button For Opened Tabs List  -->
  285.       <toolbarbutton id="btn_tabslist" type="menu" class="toolbarbutton-1 chromeclass-toolbar-additional"
  286.                onmousedown="checkForCtrlClick(event);"
  287.                onclick="if (event.target == this) if (event.button == 1) gBrowser.closeAllTabs();"
  288.                context="hideTabbar_context"
  289.                label="&tabslistbtn.label;"
  290.                _tooltiptext="&tabslistbtn.tooltip;"
  291.                tooltiptext="&tabslistbtn.tooltip;">
  292.          <menupopup id="btn_tabslist_menu"
  293.                contextmenu="menuedit-tabContextMenu"
  294.                onpopupshowing="return createTabsList(this, document.getElementById('btn_tabslistSorted').getAttribute('checked') ? 1 : 2);"
  295.                onpopuphidden="hideCommonList(this);"
  296.                onclick="removeTabFromList(event, this, 2);"
  297.                oncommand="TMP_TabsListOncommand(event);">
  298.                <menuseparator id="btn_tabslist_sep"/>
  299.                <menuitem id="btn_tabslistSorted" label="&sortedTabs.label;" contextmenu=""
  300.                          class="menuitem-iconic" type="checkbox"
  301.                          tooltiptext="&sortedTabs.tooltip;"
  302.                          oncommand="showTabsListPopup(event);"/>
  303.          </menupopup>
  304.       </toolbarbutton>
  305.  
  306.       <toolbarbutton id="btn_closedwindows" type="menu" class="toolbarbutton-1 chromeclass-toolbar-additional"
  307.                observes="tmp_closedwindows"
  308.                label="&closedwindowsbtn.label;"
  309.                _tooltiptext="&closedwindowsbtn.tooltip;"
  310.                tooltiptext="&closedwindowsbtn.tooltip;">
  311.          <menupopup id="btn_closedwindows_menu"
  312.                contextmenu="tm_sessionmanagerContextMenu"
  313.                onpopupshowing="SessionManager.createMenu(this, gSessionPath[0]);"
  314.                onpopuphidden="this.parentNode.setAttribute('tooltiptext', this.parentNode.getAttribute('_tooltiptext'));"
  315.                oncommand="SessionManager.restoreSession(event.originalTarget);"
  316.                onclick="SessionManager.removeFromMenu(event, this, gSessionPath[0]);">
  317.                <menuseparator id="btn_closedwindows-startSeparator" hidden="true"/>
  318.                <menuseparator id="btn_closedwindows-endSeparator" hidden="true"/>
  319.          </menupopup>
  320.       </toolbarbutton>
  321.     </toolbarpalette>
  322.     <toolbarbutton id="go-button" onclick="TMP_goButtonClick(event);"/>
  323.     <menu id="historyUndoMenu">
  324.       <menupopup id="historyUndoPopup" class="fix-bookmark-item"
  325.               contextmenu="tm_undocloseContextMenu"
  326.               onpopupshowing="return TMP_ClosedTabs.populateUndoSubmenu(this);"
  327.               onpopuphidden="hideCommonList(this);"
  328.               oncommand="TMP_ClosedTabs.restoreTab('original', event.originalTarget.value); event.stopPropagation();"
  329.               onclick="TMP_ClosedTabs.checkForMiddleClick(event); event.stopPropagation();"/>
  330.     </menu>
  331.  
  332.     <popupset id="mainPopupSet">
  333.       <menupopup id="autoreload_popup" oncommand="gBrowser.onSetReloadTime(this._tab, event.originalTarget.value);"
  334.                  onpopupshowing="onAutoReloadPopupShowing(this);">
  335.         <menuitem _label="&enable.label;:" type="checkbox"
  336.                   oncommand="gBrowser.onAutoReloadEnable(this.parentNode._tab); event.stopPropagation();"/>
  337.         <menuseparator />
  338.         <menuitem label="&custom.label;ΓǪ" oncommand="gBrowser.onAutoReloadCustom(this.parentNode._tab); event.stopPropagation();"/>
  339.         <menuitem _label="&custom.label;:" type="radio"
  340.                   seconds="&seconds.label;" minute="&minute.label;" minutes="&minutes.label;"/>
  341.         <menuseparator />
  342.         <menuitem label="5  &seconds.label;" type="radio" value="5"/>
  343.         <menuitem label="15 &seconds.label;" type="radio" value="15"/>
  344.         <menuitem label="30 &seconds.label;" type="radio" value="30"/>
  345.         <menuitem label="1  &minute.label;"  type="radio" value="60"/>
  346.         <menuitem label="2  &minutes.label;" type="radio" value="120"/>
  347.         <menuitem label="5  &minutes.label;" type="radio" value="300"/>
  348.         <menuitem label="15 &minutes.label;" type="radio" value="900"/>
  349.         <menuitem label="30 &minutes.label;" type="radio" value="1800"/>
  350.         <menuseparator />
  351.         <menuitem label="&enableTabs.label;" oncommand="gBrowser.onEnableAutoReloadAllTabs(); event.stopPropagation();"/>
  352.         <menuitem label="&disableTabs.label;" oncommand="gBrowser.onDisableAutoReloadAllTabs(); event.stopPropagation();"/>
  353.       </menupopup>    
  354.       <!-- context menu for undoclosetab menupopup -->
  355.       <menupopup id="tm_undocloseContextMenu"
  356.                   onpopupshowing="return document.popupNode.value >= 0;">
  357.         <menuitem id="tmOpen" label="&restoreincurrent.label;" accesskey="&restoreincurrent.accesskey;"
  358.                   oncommand="TMP_ClosedTabs.restoreTab('current', document.popupNode.value);"/>
  359.         <menuitem id="tmOpenInNewWindow" label="&restoreinwin.label;" accesskey="&restoreinwin.accesskey;"
  360.                   oncommand="TMP_ClosedTabs.restoreTab('window', document.popupNode.value);"/>
  361.         <menuitem id="tmOpenInNewTab" label="&restoreintab.label;" accesskey="&restoreintab.accesskey;"
  362.                   oncommand="TMP_ClosedTabs.restoreTab('tab', document.popupNode.value);"/>
  363.         <menuitem id="tmRestoreTab" label="&restoretab.label;" accesskey="&restoretab.accesskey;"
  364.                   oncommand="TMP_ClosedTabs.restoreTab('original', document.popupNode.value);" default="true"/>
  365.         <menuseparator id="tmpre-bookmarks-separator"/>
  366.         <menuitem id="tmAddBookmark" label="&bookmark.label;" accesskey="&bookmark.accesskey;"
  367.                   oncommand="TMP_ClosedTabs.addBookmarks(document.popupNode.value);"/>
  368.         <menuitem id="tmcopyTabUrl" label="©taburl.label;" accesskey="©taburl.accesskey;"
  369.                   oncommand="TMP_ClosedTabs.copyTabUrl(document.popupNode.value);"/>
  370.         <menuseparator id="tmpost-bookmarks-separator"/>
  371.         <menuitem id="tm_delete" label="&deletelist.label;" accesskey="&deletelist.accesskey;"
  372.                   oncommand="TMP_ClosedTabs.restoreTab('delete', document.popupNode.value);"/>
  373.       </menupopup>
  374.       <!-- context menu for undoclosewindow menupopup for use with sessionRestore from Firefox 3.5+ -->
  375.       <menupopup id="tm_undocloseWindowContextMenu"
  376.                   onpopupshowing="return document.popupNode.value >= 0;">
  377.         <menuitem id="tm_delete-window" label="&deletelist.label;" accesskey="&deletelist.accesskey;"
  378.                   oncommand="SessionManager.restoreWindow('delete', document.popupNode.value);"/>
  379.       </menupopup>
  380.       <!-- context menu for session manager menupopup  -->
  381.       <menupopup id="tm_sessionmanagerContextMenu"
  382.                   onpopupshowing="return SessionManager.updateSessionMenu(this);"
  383.                   onpopuphidden="TM_hidePopup();">
  384.         <menuitem id="tm-sm-OpenInCurrenWindow" label="&sm.context.overwrite;" accesskey="&sm.context.overwrite.key;"
  385.                   oncommand="SessionManager.restoreSession(document.popupNode, true);"/>
  386.         <menuitem id="tm-sm-OpenInNewWindow" label="&sm.context.restore.new;" accesskey="&sm.context.restore.newkey;"
  387.                   oncommand="SessionManager.restoreSession(document.popupNode, false);"/>
  388.         <menuseparator/>
  389.         <menuitem id="tm-sm-ReplaceWithThis" label="&sm.context.replacethis;" accesskey="&sm.context.replacethis.key;" observes="tmp_contextmenu_ThisWindow"
  390.                   oncommand="SessionManager.sessionUtil('replace', 'thiswindow');"/>
  391.         <menuitem id="tm-sm-AddThis" label="&sm.context.add;" accesskey="&sm.context.add.key;" observes="tmp_contextmenu_ThisWindow"
  392.                   oncommand="SessionManager.addWinToSession('savethiswindow');"/>
  393.         <menuseparator observes="tmp_contextmenu_ThisWindow"/>
  394.         <menuitem id="tm-sm-ReplaceWithAll" label="&sm.context.replaceall;" accesskey="&sm.context.replaceall.key;" observes="tmp_contextmenu_AllWindows"
  395.                   oncommand="SessionManager.sessionUtil('replace', 'allwindows');"/>
  396.         <menuitem id="tm-sm-AddAll" label="&sm.context.addall;" accesskey="&sm.context.addall.key;" observes="tmp_contextmenu_AllWindows"
  397.                   oncommand="SessionManager.addWinToSession('saveallwindows');"/>
  398.         <menuseparator observes="tmp_contextmenu_AllWindows"/>
  399.         <menuitem id="tm-sm-Save" label="&sm.context.save;" accesskey="&sm.context.save.key;"
  400.                   oncommand="SessionManager.saveClosedSession();"/>
  401.         <menuitem id="tm-sm-Rename" label="&sm.context.rename;" accesskey="&sm.context.rename.key;"
  402.                   oncommand="SessionManager.renameSession(document.popupNode.session);"/>
  403.         <menuseparator/>
  404.         <menuitem id="tm-sm-Delete" label="&sm.context.delete;" accesskey="&sm.context.delete.key;"
  405.                   oncommand="SessionManager.removeSavedSession(document.popupNode);"/>
  406.         <menuitem id="tm-sm-DeleteAll" label="&sm.context.deleteall;" accesskey="&sm.context.deleteall.key;"
  407.                   oncommand="SessionManager.removeAllSavedSession();"/>
  408.         <menuseparator/>
  409.         <menuitem id="tm-sm-SetAsStartup" label="&sm.context.startup;" accesskey="&sm.context.startup.key;" type="checkbox"
  410.                   oncommand="SessionManager.setSessionAsStartup(this);"/>
  411.         <menuitem id="tm-sm-showext" label="&sm.context.details;" accesskey="&sm.context.details.key;" type="checkbox"
  412.                   oncommand="SessionManager.setShowNameExt(this);"/>
  413.       </menupopup>
  414.       <!-- menupopup for lasttab  -->
  415.       <menupopup id="lasttabTabList" ignorekeys="true" flex="1"
  416.                   oncommand="TMP_LastTab.OnMenuCommand(event);"
  417.                   onpopuphidden="TMP_LastTab.OnPopupHidden();" />
  418.       <menupopup id="tabslist"
  419.                  oncommand="TMP_TabsListOncommand(event);"
  420.                  onpopuphidden="hideCommonList(this);"/>
  421.       <!-- popup for show\hide the tabbar  -->
  422.       <popup id="hideTabbar_context" oncommand="tabxPrefs.setIntPref('hideTabbar', event.originalTarget.value);"
  423.                  onpopupshowing="this.childNodes[gHideTabBar+2].setAttribute('checked' ,'true');">
  424.         <menuitem           type="radio" label="&hideTabBar.label;:" disabled="true" style="font-weight: bold;color: #CC0000;"/>
  425.         <menuseparator/>
  426.         <menuitem value="0" type="radio" label="&hideTabBar.never.label;"    accesskey="&hideTabBar.never.key;"/>
  427.         <menuitem value="1" type="radio" label="&hideTabBar.onOneTab.label;" accesskey="&hideTabBar.onOneTab.key;"/>
  428.         <menuitem value="2" type="radio" label="&hideTabBar.always.label;"   accesskey="&hideTabBar.always.key;"/>
  429.       </popup>
  430.     </popupset>
  431.  
  432.   <stringbundleset id="stringbundleset">
  433.     <stringbundle id="tmp-string-bundle" src="chrome://tabmixplus/locale/tabmix.properties" />
  434.     <stringbundle id="bundle_session_manager" src="chrome://tabmixplus/locale/session-manager.properties" />
  435.   </stringbundleset>
  436.  
  437.   <!-- Tabmix Plus KEYS  -->
  438.   <keyset id="mainKeyset">
  439.     <key id="key_tm_toggleFLST" label="Toggle FLST" keycode="VK_F9" TM_oncommand="flst.toggle();" />
  440.     <key id="key_tm_undoClose" label="&undoCloseTab.label;" modifiers="accel" keycode="VK_F12" oncommand="TMP_ClosedTabs.undoCloseTab();"/>
  441.     <key id="key_tm_slideShow" label="Toggle tab slide show" keycode="VK_F8" TM_oncommand="flst.toggleSlideshow();"/>
  442.     <key id="key_tm_dupTab" label="&duplicateTabMenu.label;" modifiers="accel,alt" key="&tab.key;" oncommand="gBrowser.duplicateTab(gBrowser.mCurrentTab);" />
  443.     <key id="key_tm_dupWin" label="&duplicateinWin.label;" modifiers="accel,shift" key="&window.key;" oncommand="gBrowser.duplicateInWindow(gBrowser.mCurrentTab, false);"/>
  444.     <key id="key_tm_detachTab" label="&detachTab.label;" modifiers="accel, alt" key="&window.key;" oncommand="gBrowser.duplicateInWindow(gBrowser.mCurrentTab, true);"/>
  445.     <key id="key_tm_mergeWin" label="&mergeContext.label;" modifiers="accel,shift" key="&merge.key;" oncommand="dtMergeWindows.mergeWindows();" />
  446.     <key id="key_tm-sm-saveone" label="&saveWindow.label;" modifiers="accel" keycode="VK_F1" oncommand="SessionManager.sessionUtil('save', 'thiswindow');"/>
  447.     <key id="key_tm-sm-saveall" label="&saveAllWindows.label;" modifiers="accel" keycode="VK_F9" oncommand="SessionManager.sessionUtil('save', 'allwindows');"/>
  448.   </keyset>
  449.  
  450.   <!-- Tabmix Plus broadcasterset -->
  451.   <broadcasterset id="mainBroadcasterSet">
  452.     <broadcaster id="tmp_menu_AllWindows" hidden="true"/>
  453.     <broadcaster id="tmp_contextmenu_ThisWindow" hidden="true"/>
  454.     <broadcaster id="tmp_contextmenu_AllWindows" hidden="true"/>
  455.     <broadcaster id="tmp_closedwindows" disabled="true"/>
  456.     <broadcaster id="tmp_undocloseButton" disabled="true" type="menu"/>
  457.     <broadcaster id="tmp_sessionmanagerButton" disabled="true"/>
  458.   </broadcasterset>
  459.  
  460. </overlay>
  461.